<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var dou = {
            name: "小马",
            age: 25,
            sex: '男',
            addr: '太阳系地球村',
            tel: 13838389438,
            show: function () {
                document.write("我是：" + this.name + "年龄：" + this.age + "性别：" + this.sex + "住址：" + this.addr + "电话：" + this.tel);
            }
        }
        for (var i in dou) {
            document.write(i + "=" + dou[i] + "<br />");
        }

    </script>
</body>

</html>